from rest_framework import serializers

from goods.models import SKUImage, SKU


class ImagesSerializer(serializers.ModelSerializer):
    # sku_id = serializers.IntegerField()

    class Meta:
        model = SKUImage
        fields = "__all_"


class SKUSerializer(serializers.ModelSerializer):
    class Meta:
        model = SKU
        fields = ('id', 'name')

